# -*- coding: utf-8 -*-
"""
@Auth ： laichenying
@File ：url_config.py
@IDE ：PyCharm

"""

import enum
import pymysql


class URLConf(enum.Enum):
    '''
    环境配置枚举类
    '''
    TEST_NS_API_URL = 'http://10.99.101.6:31618'
    TEST_OTA_API_URL ='http://10.99.101.205:32351'
    TEST_API_URL = 'http://10.99.101.6:30417'
    PROD_API_URL = 'http://www.baidu.com'


"""
安装pymysql模块
获得数据库连接
查询数据

"""

conn = pymysql.connect(
    user='upower',
    passwd='PWimUD4KzH',
    host='10.99.50.11',
    port=30597,
    db='upower_ota_db'
    # db='vehicle_domain'
)

if __name__ == '__main__':
    print(URLConf.TEST_NS_API_URL.name)
    print(URLConf.TEST_NS_API_URL.value)
    print(URLConf.TEST_API_URL.name)
    print(URLConf.TEST_API_URL.value)


